<?php

namespace App\Listeners\Pay;

use App\Modules\Apicrzs\Services\Pay\PayNotifyServices;

class NotifyListener
{
    public function handle($event)
    {
        // 发送欢迎邮件给注册用户或者处理其他业务逻辑
        $notify = $event->notify;
        $payType = $event->payType;

        $attach = $notify['attach'];
        $payNotifyServices= new PayNotifyServices();

       $res =  $payNotifyServices->wechatProduct($notify,$payType);
        xdebug($event,'骏达-设备','Listener');
//        xdebug($payType,'骏达-设备','Listener');

        return $res;
    }
}
